package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.CacBaseMinorItem;

import java.util.List;

public interface CacBaseMinorItemMapper {
    int deleteByPrimaryKey(Integer minorItemId);

    int insert(CacBaseMinorItem record);

    int insertSelective(CacBaseMinorItem record);

    CacBaseMinorItem selectByPrimaryKey(Integer minorItemId);

    int updateByPrimaryKeySelective(CacBaseMinorItem record);

    int updateByPrimaryKey(CacBaseMinorItem record);

    /**
     * 根据CacBaseMinorItem查询CacBaseMinorItem
     * author:liqian
     * date:2018-10-31 17:04
     */
    CacBaseMinorItem selectByCmi(CacBaseMinorItem cacBaseMinorItem);

    /**
     * 根据大项id删除大项下面的小项
     * author:liqian
     * date:2018-10-31 17:04
     */
    int delByBid(Integer bigItemId);

    /**
     * 根据类别id删除小项
     * author:liqian
     * date:2018-10-31 17:04
     */
    int delByTypeId(Integer cacTypeId);
    /**
     * 批量添加小项
     * author:liqian
     * date:2018-11-23 10:27
     */
    int insertBatch(List<CacBaseMinorItem> cacBaseMinorItemList);
}